package com.car.dal.dao.goods;


import java.util.List;

import com.car.bean.GridObj;
import com.car.bean.OrderObj;
import com.car.bean.PageObj;
import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.GoodsSh;

public class GoodsShDaoImpl extends IbatisCommonDao<GoodsSh, Long> implements GoodsShDao {

	@Override
	public GridObj GetList(GoodsSh goodsSh, PageObj pageObj) {
		OrderObj order = new OrderObj();
		order.setDir("desc");
		order.setSort("id");
		return super.findByPage(goodsSh, pageObj, order);
	}

	@Override
	public List<GoodsSh> getGoodsSh(GoodsSh goodsSh) {

		return this.queryForEntityList(GoodsSh.class, "getGoodsSh", goodsSh);
	}



}
